﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DMHangForm.aspx.cs" Inherits="Web.Admin.DMHangForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="panel-heading">
    <h3 class="panel-title"><b>Thông tin hàng hóa</b></h3>
</div>
<div class="panel-body">
    <div class="form-horizontal" role="form">
        <asp:HiddenField ID="hdfMaHang" runat="server" />
        <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">Tên Hàng<asp:RequiredFieldValidator 
                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenHang" 
                Display="Dynamic" ErrorMessage="Phải nhập tên hàng hóa" ForeColor="Red">*</asp:RequiredFieldValidator>
            </label>
        &nbsp;<div class="col-sm-10">
            <asp:TextBox ID="txtTenHang" runat="server" CssClass="form-control" placeholder="Tên Hàng"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">DVT<asp:RangeValidator 
                ID="RangeValidator1" runat="server" ControlToValidate="txtDonGia" 
                Display="Dynamic" ErrorMessage="Chỉ được trong khoảng 100k ~ 10M" 
                ForeColor="Red" MaximumValue="100000000" MinimumValue="100000" Type="Double">*</asp:RangeValidator>
            </label>
        &nbsp;<div class="col-sm-10">
            <asp:TextBox ID="txtDVT" runat="server" CssClass="form-control" placeholder="DVT"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Đơn Giá</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtDonGia" runat="server" CssClass="form-control" placeholder="Đơn Giá"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Nhà Cung Cấp</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlNhaCungCap" runat="server" CssClass="form-control">
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Loại Hàng</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlLoaiHang" runat="server" CssClass="form-control">
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Hình Ảnh</label>
        <div class="col-sm-10">
            <asp:FileUpload ID="FileUpload1" runat="server"/>
            <br />
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/Upload/default.gif" 
                Width="100" CssClass="img-rounded" />
            <asp:HiddenField ID="hfHinhAnh" runat="server" />
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Mô Tả</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtMoTa" runat="server" CssClass="form-control" placeholder="Mô Tả" TextMode="MultiLine"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:LinkButton ID="btnSave" CssClass="btn btn-primary" runat="server" 
                onclick="btnSave_Click">Lưu</asp:LinkButton>
            <a href="DMHangManager.aspx" class="btn btn-default">
            Hủy bỏ
            </a>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        </div>
        </div>
    </div>
</div>
</asp:Content>
